package com.quick.job;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author wangxin86
 * @title: TaskComponentLifecycleRunner
 * @description: TODO
 * @date 2019/7/29 15:12ReconJobMapper
 */
@Component
public class TaskComponentLifecycleRunner implements ApplicationRunner {
    @Resource
    private JobLifecycle jobLifecycle;

    @Override
    public void run(ApplicationArguments applicationArguments) throws Exception {
        jobLifecycle.start();
    }
}
